<template>
	<div style="margin: 0 auto; text-align: center;">
		<applet
			:code="build.java_class_name"
			:archive="javaArchive"
			:codebase="javaCodebase"
			:width="embedWidth"
			:height="embedHeight"
		>
			<param v-for="param of build.params" :name="param.name" :value="param.value" />

			<param name="gjapi_username" :value="username" />
			<param name="gjapi_token" :value="token" />

			<p>
				<translate>You need Java installed to play this game.</translate>
				<br />
				<translate>You may use the button below to get it.</translate>
			</p>

			<external-link href="https://java.com/download">
				<img
					src="https://java.com/en/img/everywhere/getjava_lg.gif"
					alt="Get Java"
					style="border-style: none"
				/>
			</external-link>
		</applet>
	</div>
</template>

<script lang="ts" src="./applet"></script>
